﻿function Pop(A) {
    document.getElementById('Pop').style.display = 'block';
    document.getElementById('Par').innerHTML = A;
}
function Cancel() {
    document.getElementById('Pop').style.display = 'none'
}
function AddEnq(N, V) {
    var I = document.getElementById('Inner').value;
    var O = document.getElementById('Outer').value;
    var H = document.getElementById('Height').value;
    if (!(I == "") && !(O == "") && !(H == "")) {
        if (O > I) {
            SetC(N, V, 1, '/');
            SetC(N + 'I', I,1, '/');
            SetC(N + 'O', O, 1, '/');
            SetC(N + 'H', H, 1, '/');
            alert("This Seal is added for enquiry");
            document.getElementById('Pop').style.display = 'none';
        }
        else { alert("Inner Diameter can't be greater than or equal to Outer Diameter ! "); }
    }
    else {
        alert("Please fill in all the dimensions !");
    }
}
function SetC(name, value, expires, path) {
    var today = new Date();
    today.setTime(today.getTime());
    if (expires) {
        expires = expires * 1000 * 60 * 60 * 24;
    }
    var expires_date = new Date(today.getTime() + (expires));
    document.cookie = name + "=" + escape(value) +
((expires) ? ";expires=" + expires_date.toGMTString() : "") +
((path) ? ";path=" + path : "");
}
